<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    <?php include_http_metas() ?>
    
    <?php include_title() ?>
<meta name="Description" content="Chercheur de maisons, villas et appartements en location &agrave; Costa Brava" />
<meta name="Keywords" content="Costa Brava, location de maisons, location d'appartements, maisons avec piscine, vacations, plage, criques"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Costa Bravas France" />
<meta name="Robots" content="index,follow" />
</head>

<body>
<!-- wrap starts here -->
<div id="wrap">
	<div id="header"><div id="header-content">	
		<h1><?php echo link_to('Location de maisons et appartements avec piscine &agrave; Costa Brava', '@homepage', array('id'=>'logo')) ?></h1>
		<h2 id="slogan">Vacations au bord de la mer</h2>		
		<?php $routeName = sfContext::getInstance()->getRouting()->getCurrentRouteName() ?>
		<!-- Menu Tabs -->
		<ul>
			<li><?php echo link_to('Accueil', '@homepage') ?></li>
			<?php if($routeName=='searcher' || $routeName=='searcher_paginator'): ?>
			<li><?php echo link_to('Location', '@searcher', array('id'=>'current')) ?></li>
			<?php else: ?>
			<li><?php echo link_to('Location', '@searcher') ?></li>
			<?php endif ?>
			<?php include_component('searcher', 'offres') ?>
			<li><?php echo link_to('Guide Costa Brava', '@costa_brava') ?></li>
			<li><?php echo link_to('Qui sommes-nous?', '@aboutus') ?></li>
			<li><a href="http://blog.costabravas.fr">Blog</a></li>
		</ul>		
		<?php if ($sf_user->numberFavorites()>0): ?>
			<?php if($sf_user->isAuthenticated()): ?>
				<li><?php echo link_to('Mes favoris ('.$sf_user->numberFavorites().')', '@list_favorites_clients', array('id'=>'favoritesNumber')) ?></li>
			<?php else: ?>
				<li><?php echo link_to('Mes favoris ('.$sf_user->numberFavorites().')', '@list_favorites', array('id'=>'favoritesNumber')) ?></li>
			<?php endif; ?>
		<?php endif; ?>
		
			<?php if($sf_user->isAuthenticated()): ?>
				<span id="espaceUser"><?php echo link_to($sf_user->getUsername(), '@client_index', array('class'=>'headerBlackLink'))." | ".link_to('D&eacute;connexion', '/user/signout', array('class'=>'headerBlackLink'))?></span>
			<?php else: ?>
			<!--
			<span id="espaceUser"><?php echo link_to('Votre compte', '@login', array('class'=>'headerBlackLink')) ?></span>
			-->
			<?php endif; ?>
	</div>
</div>
	
	<!-- content-wrap starts here -->
	<div id="content-wrap">
		<div id="content">		
				
		<?php echo $sf_content ?>
		<!-- content-wrap ends here -->		

		<!-- footer starts here -->	
		<?php include_partial('global/footer') ?>	
		<!-- footer ends here -->
		
	<!-- wrap ends here -->
		</div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-12985352-1");
pageTracker._trackPageview();
} catch(err) {}</script>		
</body>
</html>
